/* 
 * File:   Button.h
 * Author: Erwin
 *
 * Created on 21 juni 2010, 16:32
 */

#ifndef _BUTTON_H
#define	_BUTTON_H
#include "ButtonListener.h"

#define UP		4
#define DOWN	5

//#ifndef _BUTTONLISTENER_H
class ButtonListener;
//#endif

class Button {
public:
    void setListener(ButtonListener * lst);
    ButtonListener * getListener();
    unsigned char buttonDown();
    unsigned char buttonUp();
    unsigned char getState();
    void setButton(mkt_key_enum mtk_key);
private:
    ButtonListener * bl;
    mkt_key_enum mtk_key;
    unsigned char state;
    
};

#endif	/* _BUTTON_H */

